package cn.wildfirechat.remote;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * Create by HEKE, 2019/9/5 16:48
 * TODO 接收到程序后台被杀死后的操作
 */
public class RecoverReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        // do nothing
        Log.e("wfc", "main process crashed, to restart");
        try {
            /*Intent restartApp = new Intent();
            restartApp.setClassName("com.sourcemuch.im.caiba", "com.sourcemuch.im.caiba.ExtendSplashActivity");
            restartApp.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(restartApp);*/
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
